package com.li.mapper;

import com.li.pojo.po.Activity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface ActivityMapper {


    void add(Activity activity);
    @Select("select * from sys_activity where id = #{id}")
    Activity  findDetailAct(Integer id);

    void modifyAct(Activity activity);

    void deleteAct(List<Integer> ids);
    @Select("select * from sys_activity where channel = #{channel}")
    List<Activity> query(String channel);
    List<Activity> pagelist(Integer pageNum, Integer pageSize, String code, String channel);
    List<Activity> pagelist(Integer pageNum, Integer pageSize, String code, String channel, String beginCreateTime, String beginTime, String endTime, String endCreateTime);
}
